﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Addmin/BackEnd/MTP_Admin.Master" AutoEventWireup="true" CodeBehind="MG_Catelogies_Artical.aspx.cs" Inherits="KiwiShopping.Addmin.BackEnd.MG_Catelogies_Artical" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<ext:Panel ID="Panel2" runat="server" Title="Quản lý danh mục Bài viết" Icon="Application"
                            Height="500" PaddingSummary="10px 5px 0 5px" Layout="ColumnLayout">
                            <Items>
                                <ext:Container ID="Container3" runat="server" ColumnWidth=".49">
                                    <Items>
                                        <ext:FieldSet ID="FieldSet1" runat="server" Title="Danh mục cha" PaddingSummary="10px 5px 0 5px"
                                            Layout="FormLayout" LabelWidth="150">
                                            <Items>
                                                <ext:TextField FieldLabel="Tên danh mục cha" ID="dmChaTen" IDMode="Static" runat="server"
                                                    AnchorHorizontal="100%" />
                                                <ext:TextArea FieldLabel="Mô tả" ID="dmChaMoTa" IDMode="Static" runat="server" AnchorHorizontal="100%"
                                                    Height="90" />
                                                
                                                <ext:Button ID="Button3" runat="server" Text="Save" FieldLabel=" " LabelSeparator=" "
                                                    Icon="Find">
                                                    <DirectEvents>
                                                        <Click OnEvent="save_CatelogiesParent" />
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:GridPanel ID="DSDMCha_Grid" IDMode="Static" runat="server" Height="170" AutoScroll="true"
                                                    Region="Center" Title="Danh sách danh mục cha">
                                                    <Store>
                                                        <ext:Store ID="DSDMCha_Store" runat="server" AutoDataBind="true" SkipIdForNewRecords="false">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="ID">
                                                                    <Fields>
                                                                        <ext:RecordField Name="ID" Type="String" Mapping="ID" />
                                                                        
                                                                        <ext:RecordField Name="Name" Type="String" Mapping="Name" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <ColumnModel ID="ColumnModel2" runat="server" AutoDataBind="true">
                                                        <Columns>
                                                            <ext:Column ColumnID="ID" Header="Mã" DataIndex="ID" />
                                                            
                                                            <ext:Column Header="Danh mục cha" DataIndex="Name" AutoDataBind="true" 
                                                                MenuDisabled="True" />
                                                        </Columns>
                                                    </ColumnModel>
                                                    <SelectionModel>
                                                        <ext:CheckboxSelectionModel ID="CheckboxSelectionModel111" runat="server" SingleSelect="true" />
                                                    </SelectionModel>
                                                    <Listeners>
                                                        <Command Handler="detail(command, record.data.Size)" />
                                                    </Listeners>
                                                    <Buttons>
                                                        <ext:Button runat="server" Text="Chọn" ID="Button61" Icon="Add">
                                                            <Listeners>
                                                            </Listeners>
                                                        </ext:Button>
                                                       
                                                    </Buttons>
                                                </ext:GridPanel>
                                            </Items>
                                        </ext:FieldSet>
                                    </Items>
                                </ext:Container>
                                <ext:Container ID="Container1" runat="server" ColumnWidth=".02" />
                                <ext:Container ID="Container2" runat="server" ColumnWidth=".49">
                                    <Items>
                                        <ext:FieldSet ID="FieldSet2" runat="server" Title="Danh muc con" PaddingSummary="10px 5px 0 5px"
                                            Layout="FormLayout" LabelWidth="150">
                                            <Items>
                                                <ext:SelectBox ID="SLDMCha_Grid" runat="server" FieldLabel="Danh mục cha" AnchorHorizontal="100%"
                                                    DataIndex="Status" IDMode="Static" ValueField="ID" DisplayField="Name">
                                                    <Store>
                                                        <ext:Store ID="SLDMCha_Store" runat="server">
                                                            <Reader>
                                                                <ext:ArrayReader IDProperty="ID">
                                                                    <Fields>
                                                                        <ext:RecordField Name="ID" Type="int" Mapping="ID" />
                                                                        <ext:RecordField Name="Name" Type="String" Mapping="Name" />
                                                                    </Fields>
                                                                </ext:ArrayReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                </ext:SelectBox>
                                                <ext:TextField FieldLabel="Tên danh mục con" ID="dmConTen" IDMode="Static" runat="server"
                                                    AnchorHorizontal="100%" />
                                                <ext:TextArea FieldLabel="Mô tả" ID="dmConMoTa" IDMode="Static" runat="server" AnchorHorizontal="100%" />
                                                <ext:Button ID="Button4" runat="server" Text="Save" FieldLabel=" " LabelSeparator=" "
                                                    Icon="Find">
                                                    <DirectEvents>
                                                        <Click OnEvent="save_CatelogiesChild">
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:GridPanel ID="DSDMCon_Grid" IDMode="Static" runat="server" Height="170" AutoScroll="true"
                                                    Region="Center" Title="Danh sách danh mục con">
                                                    <Store>
                                                        <ext:Store ID="DSDMCon_Store" runat="server" AutoDataBind="true" SkipIdForNewRecords="false">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="ID">
                                                                    <Fields>
                                                                        <ext:RecordField Name="ID" Type="String" Mapping="ID" />
                                                                        
                                                                        <ext:RecordField Name="Name" Type="String" Mapping="Name" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <ColumnModel ID="ColumnModel1" runat="server" AutoDataBind="true">
                                                        <Columns>
                                                            <ext:Column ColumnID="ID" Header="Mã" DataIndex="ID"  />
                                                            
                                                            <ext:Column Header="Danh mục con" DataIndex="Name" AutoDataBind="true" 
                                                                MenuDisabled="True" />
                                                        </Columns>
                                                    </ColumnModel>
                                                    <SelectionModel>
                                                        <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" SingleSelect="true" />
                                                    </SelectionModel>
                                                    <Listeners>
                                                        <Command Handler="detail(command, record.data.Size)" />
                                                    </Listeners>
                                                    <Buttons>
                                                        <ext:Button runat="server" Text="Chọn" ID="Button1" Icon="Add">
                                                            <Listeners>
                                                            </Listeners>
                                                        </ext:Button>
                                                       
                                                    </Buttons>
                                                </ext:GridPanel>
                                            </Items>
                                        </ext:FieldSet>
                                    </Items>
                                </ext:Container>
                            </Items>
                            
                        </ext:Panel>
</asp:Content>
